<?php
namespace phiction;
use \phiction\string_utils as str;

class link
{
    static function static(string $resource): string
    {
        return '/static' . mapper::sanitize_path($resource);
    }

    static function is_static(string $request_path): bool
    {
        $path = mapper::sanitize_path($request_path);
        return str::starts_with($path, '/static/');
    }
}

